<html>
<head>
    <meta charset="UTF-8">
    <title>movie</title>
    <link type="text/css" rel="stylesheet" href={{URL::asset('assets/css/main.css')}}>
    {{--<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>--}}
    {{--<script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>--}}
    <script src="{{URL::asset('assets/js/jquery.js')}}"></script>

    <script src="{{URL::asset('assets/js/dialog.js')}}"></script>

</head>
<body>
    <div id="div_top">
        @section('head')
        <ul>
            <li class="li_top"><a class="li_top_items" href="{{url('index')}}">豆辨</a></li>
            <li class="li_top"><a class="li_top_items" href=#>读书</a></li>
            <li class="li_top"><a class="li_top_items" href="{{url('index')}}">电影</a></li>
            <li class="li_top"><a class="li_top_items" href=#>音乐</a></li>
            <li class="li_top"><a class="li_top_items" href=#>同城</a></li>
            <li class="li_top"><a class="li_top_items" href=#>小组</a></li>
            <li class="li_top"><a class="li_top_items" href=#>阅读</a></li>
            <li class="li_top"><a class="li_top_items" href=#>FM</a></li>
            <li class="li_top"><a class="li_top_items" href=#>东西</a></li>
            <li class="li_top"><a class="li_top_items" href=#>市集</a></li>
            <li class="li_top"><a class="li_top_items" href=#>更多</a></li>
            @if(\Illuminate\Support\Facades\Session::has('nickname'))
                <li id="nickname" style="float: right" class="li_top"><a class="li_top_items" href="{{url('logout')}}">退出</a></li>
                <li id="nickname" style="float: right" class="li_top"><a class="li_top_items" href="{{url('profile')}}/{{Session::get('nickname')}}">{{Session::get('nickname')}}</a></li>
            @else
            <li id="register" style="float: right" class="li_top"><a class="li_top_items" href="{{url('register')}}">注册</a></li>
            <li id="login" style="float: right" class="li_top"><a class="li_top_items" href="{{url('login')}}">登录</a></li>
            @endif
            <li style="float: right" class="li_top"><a class="li_top_items" href=#>下载豆辨客户端</a></li>
        </ul>
    </div>

    <div id="div_head">
        <div class="head_one_wrap">
            <div class="div_head_one">
                <div class="head_one_logo"><a href="{{url('index')}}"><b>豆辨电影</b></a></div>
                <div class="head_one_search">
                    <form action="{{url('search')}}" method="post">
                        <input class="head_one_search_input" name="title" size="22" maxlength="60">
                        <div class="head_one_search_btn">
                            <input type="submit" value="" style="background: url({{URL::asset('assets/img/head_search.png')}}) no-repeat 0 -40px">
                        </div>
                    </form>
                </div>
            </div>
            <div class="div_head_two">
                <ul>
                    <li class="li_head_two"><a href="#">影讯&购票</a></li>
                    <li class="li_head_two"><a href="#">选电影</a></li>
                    <li class="li_head_two"><a href="#">电视剧</a></li>
                    <li class="li_head_two"><a href="#">排行榜</a></li>
                    <li class="li_head_two"><a href="#">分类</a></li>
                    <li class="li_head_two"><a href="#">影评</a></li>
                    <li class="li_head_two"><a href="#">2016年度榜单</a></li>
                    <li class="li_head_two"><a href="#">2016观影报告</a></li>
                </ul>
            </div>
        </div>
        @show
    </div>
    <div id="div_body">
      <div class="body_left">
        @section('content')
            @show
      </div>
        <div class="body_rank">
        @section('sidebar')
                <div class="side_item">
                    <div class="contact">快来互粉</div>
                    <div class="contact_bg">
                        <ul>
                            <li class="contact_item"><a class="icon" href="http://weibo.com/u/3121974671" target="_blank"><div><img src="{{URL::asset('assets/img/home_weibo.png')}}"></div><div>微博</div></a></li>
                            <li class="contact_item"><a class="icon" href="http://music.163.com/m/user/home?id=285220200" target="_blank"><div><img src="{{URL::asset('assets/img/cloud_music.jpg')}}"></div><div>云音乐</div></a></li>
                            <li class="contact_item"><a class="icon" href="http://www.zhihu.com/people/zhang-yong-wu?utm_source=qq&utm_medium=social" target="_blank"><div><img src="{{URL::asset('assets/img/zhihu.jpg')}}"></div><div>知乎</div></a></li>
                        </ul>
                    </div>
                </div>
                <div class="side_item">
                    <div class="contact">联系我</div>
                    <div class="contact_bg">
                        <div class="wechat"><img src="{{URL::asset('assets/img/home_weixin.png')}}"><div>微信</div></div>
                        <div class="scan"><img src="{{URL::asset('assets/img/scan.png')}}"></div>
                        <div class="two_code"><img src="{{URL::asset('assets/img/wechat.png')}}"></div>
                    </div>
                </div>
                <div class="side_item">
                    <div class="contact">友情链接</div>
                    <div class="contact_bg">
                        <ul>
                            <li class="contact_item"><a class="icon" href="https://movie.douban.com/" target="_blank"><div><img src="{{URL::asset('assets/img/douban.png')}}"></div><div>豆瓣</div></a></li>
                            <li class="contact_item"><a class="icon" href="http://www.imdb.com/" target="_blank"><div><img src="{{URL::asset('assets/img/imdb.jpg')}}"></div><div>IMDb</div></a></li>
                            <li class="contact_item"><a class="icon" href="http://www.1905.com/" target="_blank"><div><img src="{{URL::asset('assets/img/1905.png')}}"></div><div>1905</div></a></li>
                            <li class="contact_item"><a class="icon" href="http://www.mtime.com/" target="_blank"><div><img src="{{URL::asset('assets/img/mtime.jpg')}}"></div><div>Mtime</div></a></li>
                            <li class="contact_item"><a class="icon" href="http://www.maoyan.com/" target="_blank"><div><img src="{{URL::asset('assets/img/maoyan.png')}}"></div><div>猫眼</div></a></li>

                        </ul>
                    </div>
                </div>
                 <a id="rocket" class="back_top" hidden></a>
            @show
        </div>
    </div>
    @section('foot')
    <div id="div_foot">
        <span style="float:left;">蜀ICP备17010954号-1</span>
        <span style="float: right"><a>关于豆辨</a><a>在豆辨工作</a><a>联系我们</a><a>免责声明</a><a>帮助中心</a><a>移动应用</a><a>豆辨广告</a></span>
        @show
    </div>
</body>
<script>
    $(function () {
        //滚动条判断小火箭
        $(window).scroll(function () {
            if($(window).scrollTop()>600){
                $("#rocket").show();
            }
            else {
                $("#rocket").hide();
            }
        });
        $("#rocket").hover(function () {
                $(this).attr("class","back_top_hover");
            },
            function () {
                $(this).attr("class","back_top");
            });
        $("#rocket").click(function () {
            $('body,html').animate({scrollTop:0},800);
        });

    });
</script>
</html>